package com.adcc.loadsheet.monitor.congifuration;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties({MysqlDataSourceConfiguration.class, OracleMasterDataSourceConfiguration.class, OracleSlaveDataSourceConfiguration.class})
public class AppConfiguration {

    // 主机地址
    @Value("${host}")
    private String host;

    // 服务名称
    @Value("${name}")
    private String name;

    // task线程数
    @Value("${taskThreads}")
    private Integer taskThreads;

    // 表空间名称
    @Value("${tablespaceName}")
    private String tablespaceName;

    // agent地址
    @Value("${agentUrl}")
    private String agentUrl;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getTaskThreads() {
        return taskThreads;
    }

    public void setTaskThreads(Integer taskThreads) {
        this.taskThreads = taskThreads;
    }

    public String getTablespaceName() {
        return tablespaceName;
    }

    public void setTablespaceName(String tablespaceName) {
        this.tablespaceName = tablespaceName;
    }

    public String getAgentUrl() {
        return agentUrl;
    }

    public void setAgentUrl(String agentUrl) {
        this.agentUrl = agentUrl;
    }
}
